home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / isauthorized.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  825 b   |  31 lines

  1. <!---  This view-only example calls the IsAuthorized
  2.        function. --->
  3. <HTML>
  4. <HEAD>
  5. <TITLE>IsAuthorized Function</TITLE>
  6. </HEAD>
  7. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  8. <BODY  bgcolor="#FFFFD5">
  9. <H3>IsAuthorized Function</H3>
  10. <P>
  11. Call the IsAuthorized function to determine
  12. if the user is authorized to perform the specified 
  13. action on the specified ColdFusion resource.
  14. <P>
  15. This is a view-only example. Refer to the commented
  16. source code for more information.
  17. <!---
  18. <CFIF IsAuthorized(Datasource, Orders, select)>
  19.    <CFQUERY name="GetList" datasource="Orders">
  20.        SELECT *    FROM Orders
  21.    </CFQUERY>
  22.    <CFOUTPUT QUERY="GetList">
  23.        Authorization Succeeded. Order information follows:
  24.        #Customer# - #BalanceDue#<BR>
  25.     </CFOUTPUT>
  26. </CFIF>
  27. ---> 
  28.  
  29. </BODY>
  30. </HTML>       
  31.